package com.pet.mapper;

import com.pet.pojo.Worker;

import java.util.List;

public interface WorkerMapper {

    List<Worker> findAll();

    void add(Worker worker);

    void deleteById(String id);

    void updateWorker(Worker worker);

    void batchDel(Integer[] ids);

    List<Worker> findByIds(Integer[] ids);

    /**
     * 批量插入数据
     * @param cachedDataList
     */
    void save(List<Worker> cachedDataList);
}
